<?php

/* @var $this \yii\web\View */
/* @var $content string */

use yii\helpers\Html;
use yii\bootstrap\Nav;
use yii\bootstrap\NavBar;
use yii\widgets\Breadcrumbs;
use frontend\assets\AppAsset;
use common\widgets\Alert;

AppAsset::register($this);


//引入css
AppAsset::addCss($this,'@web/list/bootstrap-3.3.7-dist/css/bootstrap.min.css');
AppAsset::addCss($this,'@web/css/base.css');
AppAsset::addCss($this,'@web/css/officeHall/uploadAssetPackage/uploadInformation.css');
AppAsset::addCss($this,'@web/css/common/header-footer.css');

//引入js
AppAsset::addScript($this,'@web/js/list/jquery/jquery.min.js');
AppAsset::addScript($this,'@web/js/list/bootstrap-3.3.7-dist/js/bootstrap.min.js');
AppAsset::addScript($this,'@web/js/common.js');
AppAsset::addScript($this,'@web/js/officeHall/uploadAssetPackage/uploadInformation.js');
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="<?= Yii::$app->language ?>">
<head>
    <meta charset="<?= Yii::$app->charset ?>">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no,maximum-scale=1.0,minimum-scale=1.0" />
    <?= Html::csrfMetaTags() ?>
    <title><?= Html::encode($this->title) ?></title>
    <?php $this->head() ?>


    <!--当遇到IE9以下的版本的使用会执行下面注释的代码  (HThtml5shiv.min.js和respond.js IE8支持HTML5元素和媒体查	询,respond.min.js在只能在服务器上运行,在本地不会运行-->
    <!--[if lt IE 9]>
    <script src="https://cdn.bootcss.com/html5shiv/3.7.3/html5shiv.min.js"></script>
    <script src="https://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<?php $this->beginBody() ?>

<!--//头部-->
<div class="header">
    <div class="container">
        <div class="row">
            <div class="left col-xs col-sm-6  col-md-6 col-lg-6 ">
                <img class="img-responsive" alt="Responsive image" src="images/image/common/pm5log.png"
                     alt=""/>
            </div>
            <div class="right col-xs col-sm-6  col-md-6 col-lg-6">
                <div class="row">
                    <div class="col-sm-9 col-md-9 col-lg-9">
                        <p class="pull-right"></p>
                    </div>
                    <div class="col-sm-3 col-md-3 col-lg-3">
                        <span class="user"></span>
                        <span class=" exit glyphicon " aria-hidden="true"> 退出</span>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!--//导航区-->
<div class="nav nav-fix">
    <div class="container">
        <div class="row">
            <ul class="nav  navbar-nav col-sm-12 col-md-12  nav-self">
                <li class="active dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">办公大厅</a>
                    <!-- <ul  class="dropdown-menu" >
                        <li><a href="###">办公大厅1</a></li>
                        <li><a href="###">办公大厅2</a></li>
                    </ul> -->
                </li>
                <li class="xmgl dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">项目管理</a>
                    <ul class=" dropdown-menu">
                        <li><a href="###">资产包管理</a></li>
                        <li><a href="###">单项目管理</a></li>
                    </ul>
                </li>
                <li><a href="#">审批管理</a></li>
                <li><a href="#">档案管理</a></li>
                <li class="htgl dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown">后台管理</a>
                    <ul class="dropdown-menu">
                        <li><a href="###">岗位管理</a></li>
                        <li><a href="###">用户管理</a></li>
                        <li><a href="###">角色管理</a></li>
                        <li><a href="###">菜单管理</a></li>
                        <li><a href="###">工作流管理</a></li>
                    </ul>
                </li>
            </ul>
        </div>
    </div>
</div>
<!-- 导航区结束 -->

<div class="wrap">
    <?php
/*    NavBar::begin([
        'brandLabel' => 'My Company',
        'brandUrl' => Yii::$app->homeUrl,
        'options' => [
            'class' => 'navbar-inverse navbar-fixed-top',
        ],
    ]);

    $menuItems = [
        ['label' => 'Home', 'url' => ['/site/index']],
        ['label' => 'About', 'url' => ['/site/about']],
        ['label' => 'Contact', 'url' => ['/site/contact']],
    ];
    if (Yii::$app->user->isGuest) {
        $menuItems[] = ['label' => 'Signup', 'url' => ['/site/signup']];
        $menuItems[] = ['label' => 'Login', 'url' => ['/site/login']];
    } else {
        $menuItems[] = '<li>'
            . Html::beginForm(['/site/logout'], 'post')
            . Html::submitButton(
                'Logout (' . Yii::$app->user->identity->username . ')',
                ['class' => 'btn btn-link logout']
            )
            . Html::endForm()
            . '</li>';
    }

    echo Nav::widget([
        'options' => ['class' => 'navbar-nav navbar-right'],
        'items' => $menuItems,
    ]);
    NavBar::end();
    */?>

    <div class="container">
        <?= Breadcrumbs::widget([
            'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
        ]) ?>
        <?= Alert::widget() ?>
        <?= $content ?>
    </div>
</div>

<footer class="footer myfooter">
    <nav class="navbar navbar-default navbar-fixed-bottom">
        <div class="container">
            <p class="text-center xy">
                COPYRIGHT &copy;2017 新大唐资产管理集团 ALL RIGHT RESERVED 鲁ICP备12012005号-1
            </p>
        </div>
    </nav>
</footer>

<?php $this->endBody() ?>
</body>
</html>
<?php $this->endPage() ?>
